﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.CompilerServices;
using System.Text;
using System.Threading.Tasks;

namespace WinFormDapper
{
    public class AppData
    {
        private static readonly AppData _AppData = new AppData();

        private AppData()
        {
            ;
        }

        public static AppData Instance
        {
            get
            {
                return _AppData;
            }
        }

        //设定连接字符串
        private string datasource = "192.168.0.119";
        private string initialcatlog = "DemoData";
        private string userId = "sa";
        private string password = "Foxconn$88";

        public string connectString
        {
            get
            {
                return $"Data Source={datasource}; Initial Catalog={initialcatlog}; User Id={userId}; Password={password};";
            }
        }

        public string OracleConnectString
        {
            get
            {
                // return "User Id=sys; password=Foxconn$88;Data Source=172.23.107.225:1521/orcl; Pooling=false; DBA Privilege=SYSDBA;";
                return "User Id=scott; password=admin!23;Data Source=172.23.107.225:1521/myoracle; Pooling=false;";
            }
        }

    }
}
